<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Amaze UI Admin index Examples</title>
  <meta name="description" content="这是一个 index 页面">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="${ctx}/static/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="${ctx}/static/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="${ctx}/static/css/amazeui.min.css" />
  <link rel="stylesheet" href="${ctx}/static/css/admin.css">
  <link rel="stylesheet" href="${ctx}/static/css/app.css">
  <link rel="stylesheet" href="${ctx}/static/css/my.css">
</head>

<body data-type="login">

  <div class="am-g myapp-login">
	<div class="myapp-login-logo-block  tpl-login-max">
		<div class="myapp-login-logo-text">
			<div class="myapp-login-logo-text">
				后台管理登录
			</div>
		</div>
	
		<div class="am-u-sm-10 login-am-center">
		<p  style="color:red;text-align:center;">${message!}</p>
			<form class="am-form" action="${request.contextPath}/login" method="post">
				<fieldset>
					<div class="am-form-group">
					   <label for="doc-ipt-email-1" class="loginfont">登录名:</label>
						<input type="text" name="username" class="logininput" id="doc-ipt-email-1" placeholder="输入登录账号" required>
					</div>
					<div class="am-form-group">
					  <label for="doc-ipt-pwd-1" class="loginfont">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
						<input type="password" name="password" class="logininput" id="doc-ipt-pwd-1" placeholder="输入登录密码" required>
					</div>
					<div class="am-form-group yanzheng">
					<label for="doc-ipt-pwd-1" class="loginfont">验证码:</label>
						<input type="text" name="validateCode" class="logininput code" id="validateCode" placeholder="输入验证码" required><img id="validatecode_img" src="${request.contextPath}/validateCode"  style="cursor:pointer" alt="验证码" title="点击更换"  align='absMiddle' onclick="this.src='${request.contextPath}/validateCode?random=' + Math.random();"/>
					     	
					</div>
					<p><button type="submit" class="am-btn am-btn-default">登录</button></p>
				</fieldset>
			</form>
		</div>
	</div>
</div>

  <script src="${ctx}/static/js/jquery.min.js"></script>
  <script src="${ctx}/static/js/amazeui.min.js"></script>
  <script src="${ctx}/static/js/app.js"></script>
  <script>
  if(self!=top){  
	   window.top.location.reload();  
	} 
  </script>
</body>

</html>